<div class="main-content">
	<header>
		<h2>View Exhibition</h2>
	</header>

	<section>
    <?php echo $this->renderPartial('/partials/_notifications'); ?>
    
    <fieldset class="form" id="custom">
      <legend>Primary Information</legend>
      <p></p>
      
      <label>Institution Name</label>
      <p><?php echo $exhibition->institution_name; ?></p>
      
      <label>Contact Person</label>
      <p><?php echo $exhibition->contact_person; ?></p>
      
      <label>Address</label>
      <p><?php echo $exhibition->address; ?></p>
      
      <label>Phone</label>
      <p><?php echo $exhibition->phone_number; ?></p>
      
      <label>Email</label>
      <p><?php echo $exhibition->email; ?></p>
      
      <label>Website</label>
      <p><?php echo $exhibition->website; ?></p>
      
      <label>Created At</label>
      <p><?php echo $exhibition->created_at; ?></p>
      
      <label>Status</label>
      <p>
        <b>
        <?php if($exhibition->status == Exhibitions::STATUS_PENDING){ ?>
          <font color="red"><?php echo Exhibitions::model()->getStatusName($exhibition->status); ?></font>
        <?php }else{ ?>
          <font color="green"><?php echo Exhibitions::model()->getStatusName($exhibition->status); ?></font>
        <?php } ?>
        </b>
      </p>
      
      <ul class="action-buttons">
        <?php if($exhibition->status == Exhibitions::STATUS_PENDING){ ?>
          <li><a href="<?php echo bu('admin/exhibitions/accept'); ?>?id=<?php echo $exhibition->id; ?>&&page=go" method="POST" class="button button-gray no-text" title="Mark this exhibition as finished"><span class="accept"></span>Finished</a></li>
        <?php }else{?>
          <li><a href="<?php echo bu('admin/exhibitions/decline'); ?>?id=<?php echo $exhibition->id; ?>&&page=go" method="POST" class="button button-gray no-text" title="Decline this exhibition"><span class="decline"></span>Decline</a></li>
        <?php } ?>
          <li><a href="<?php echo bu('admin/exhibitions/delete'); ?>?id=<?php echo $exhibition->id; ?>&&page=go" method="POST" class="button button-gray no-text" title="Delete this exhibition"><span class="bin"></span>Delete</a></li>
      </ul>
    </fieldset>
    
    <fieldset>
      <legend>Message</legend>
      
      <p><?php echo $exhibition->message; ?></p>
    </fieldset>
    
    
	</section>
</div>